/**
 * @author Eric Jahn
 * Course: Object Oriented Programming
 * Final Project
 * Due Date: August 3, 2012
*/
package oop.chat.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * contact action object, will be created when a user wants to add a new contact
 * @author Eric Jahn
 */
public class ContactAction implements ActionListener
{
	//client instance
	private Gui client;
	
	/**
	 * constructor
	 * 
	 * @param	client		Client
	 */
	public ContactAction(Gui client)
	{
		this.client = client;
	}
	
	@Override
	/**
	 * action performed method for contactlist menu items
	 * when the user has selected one list, all contacts will be displayed in the jlist on the left site
	 * @param	e		ActionEvent
	 */
	public void actionPerformed(ActionEvent e) 
	{
		//call client method
		this.client.contactActionPerformed(e);
    }
}